import streamlit as st
st.title('My First Streamlit App')
st.write('Welcome to my Streamlit app!')
user_input = st.text_input('Enter a custom message:', 'Hello, Streamlit!')
st.write('Customized Message:', user_input)

import random

# 生成一个1到100之间的随机整数
a = random.randint(1, 100)
print(a)

print("line 6")

print("line 6")

st.download_button("下载","我是下载内容")

def click():
    st.write("click")

st.button("提交",on_click=click)
st.button("取消",on_click=click)
a = st.chat_input()
print(a)
print("line 12")

if st.checkbox('全选'):
    st.write("全选")
else:
    st.write("全不选")
print("line 18")    

st.divider()

date = st.date_input("rq")

print(date)

st.error("失败了")
st.success("下载成功")
num = st.text("输入你的身份证号码")
# print(num)
num2= st.number_input("输入你的身份证号码")
print(num2)


check01= st.toggle("是否")
st.warning("警告，马上要停机了")
print(check01)



info = st.text_input("input your info")

print(info)

st.text(f"this is a text {info}")

a =st.color_picker("color")
print(a)

with st.empty():
    st.write("123")
    st.write("456")
    


with open('3399.pdf', 'rb') as f:
   st.download_button('Download Zip', f, file_name='archive.pdf')



@st.cache_resource
def get_chain():
    print("33333333333")
    return 123

st.write(get_chain())    













